package com.aizhixin.lab.project.template.repository;

import com.aizhixin.lab.project.template.entity.ModuleTask;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ModuleTaskRepository extends JpaRepository<ModuleTask,String> {
    Integer countByModuleIdAndDeleteFlag(String moduleId,Integer deleteFlag);
    List<ModuleTask> findByModuleIdAndDeleteFlagOrderByTaskNoAsc(String moduleId,Integer deleteFlag);
    List<ModuleTask> findByModuleIdInAndDeleteFlag(List<String> moduleId,Integer deleteFlag);
    ModuleTask findByIdAndDeleteFlag(String id,Integer deleteFlag);
}
